package automated_assembly;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

import static org.junit.Assert.assertNotNull;

/**
 * Created by ztt on 2017/9/13.
 */
public class XmlMain {
    public static void main(String[] args) {
        //加载xml配置文件
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:automated_assembly/xml-scan.xml");
        assertNotNull(ctx);
        CompactDisc disc = ctx.getBean(CompactDisc.class);
        disc.play();
    }
}
